package com.edu.bean;

import java.util.List;

/*
*   一对多 嵌套结果
*       1.的一方里 加入 多的一方的体现。（数量是多个，所以用集合来表示）
*
*
*   一对多 嵌套查询
*       1.在1的 一方里 ，加入多的一方的
* */
public class Grade {

    private int gradeId;

    private String gradeName;

    private String gradeTeacher;

    private List<Student> studentList;

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    public int getGradeId() {
        return gradeId;
    }

    public void setGradeId(int gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getGradeTeacher() {
        return gradeTeacher;
    }

    public void setGradeTeacher(String gradeTeacher) {
        this.gradeTeacher = gradeTeacher;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "gradeId=" + gradeId +
                ", gradeName='" + gradeName + '\'' +
                ", gradeTeacher='" + gradeTeacher + '\'' +
                '}';
    }
}
